﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ID_card
{
    class CreditCardDelegate
    {
        //定义委托
        public delegate void CardDelegate(int i);
        //定义事件
        public event CardDelegate NotifyMoneyWarnning;

        public void Notify(int i)
        {

            if (NotifyMoneyWarnning != null)
            {

                Console.WriteLine("\n尊贵的先生，您要还款了，否则会对您造成不良影响，请尽快解决......\n");

                NotifyMoneyWarnning(i);

            }
        }
    }
}
